
{% extends "base.html" %}
{% set title = "添加专业" %}

{% block content %}
    <h1>添加专业</h1>
    <form action="{{ url_for('add_major') }}" method="post">
        <div class="form-group">
            <label for="name">专业名称</label>
            <input type="text" class="form-control" id="name" name="name" required>
        </div>
       <br>
       <button type="submit" class="btn btn-primary">添加</button>
    </form>
    <br><br>
    <a href="{{ url_for('list_majors') }}" class="btn btn-secondary">返回专业列表</a>
{% endblock %}
